<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 12/24 0024
  Time: 0:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    Object obj = request.getAttribute("message");
    if (obj != null) {
%>
<br>
<font color="red"><%= obj%>
</font>
<br>
<br>
<br>
<%
    }
%>
<form action="addCustomer.do" method="post">
    <table>
        <tr>
            <td>Name:</td>
            <td><input type="text" name="name"
                       value="<%= request.getParameter("name")==null ? "" :request.getParameter("name")%>"/></td>
        </tr>
        <tr>
            <td>Address:</td>
            <td><input type="text" name="address"
                       value="<%= request.getParameter("address")==null ? "" :request.getParameter("address")%>"/></td>
        </tr>
        <tr>
            <td>Phone:</td>
            <td><input type="text" name="phone"
                       value="<%= request.getParameter("phone")==null ? "" :request.getParameter("phone")%>"/></td>
        </tr>
        <tr>
            <td><input type="submit" value="提交"/></td>
            &nbsp;&nbsp;&nbsp;
            <td><a href="/page/list.jsp">返回</a></td>
        </tr>
    </table>
</form>
</body>
</html>
